<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form method="POST">
    Max : <input type="text" name="rating">
    Min :   <input type="text" name="rating1">
    <input type="submit" name="submit" value="Search">
</form>
<?php
require '../config/config.php';
$conettion = mysql_connect(DB_HOST . ":" . DB_PORT, DB_USER, DB_PASS)or die(mysql_error());
mysql_select_db(DB_NAME, $conettion);
$data= mysql_query($query, $conettion);
echo "<table border='1'>
<tr>
<th>PID</th>
<th>ID</th>
<th>Name</th>
<th>Username</th>
<th>Likes</th>
<th>Talking About Count</th>
<th>Category</th>
<th>Wevsite</th>
<th>Picture</th>
<th>Street</th>
<th>City</th>
<th>Country</th>
<th>About</th>
<th>Note</th>
<th>Date</th>
<th>Status</th>
</tr>";
while ($row = mysql_fetch_assoc($data)) { {
        echo "<tr>";
        echo "<td>" . $row['pid'] . "</td>";
        echo "<td>" . $row['id'] . "</td>";
        echo "<td>" . $row['name'] . "</td>";
        echo "<td>" . $row['username'] . "</td>";
        echo "<td>" . $row['likes'] . "</td>";
        echo "<td>" . $row['talking_about_count'] . "</td>";
        echo "<td>" . $row['category'] . "</td>";
        echo "<td>" . $row['website'] . "</td>";
        echo "<td>" . $row['picture'] . "</td>";
        echo "<td>" . $row['street'] . "</td>";
        echo "<td>" . $row['city'] . "</td>";
        echo "<td>" . $row['country'] . "</td>";
        echo "<td>" . $row['about'] . "</td>";
        echo "<td>" . $row['note'] . "</td>";
        echo "<td>" . $row['date'] . "</td>";
        echo "<td>" . $row['status'] . "</td>";
        echo "</tr>";
    }
}
echo "</table>";
?>
